package com.findFish.water.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.water.mapper.WaterFlowMapper;
import com.findFish.water.domain.WaterFlow;
import com.findFish.water.service.IWaterFlowService;

/**
 * 水流与水位监测Service业务层处理
 * 
 * @author admin
 * @date 2025-04-01
 */
@Service
public class WaterFlowServiceImpl implements IWaterFlowService 
{
    @Autowired
    private WaterFlowMapper waterFlowMapper;

    /**
     * 查询水流与水位监测
     * 
     * @param id 水流与水位监测主键
     * @return 水流与水位监测
     */
    @Override
    public WaterFlow selectWaterFlowById(Long id)
    {
        return waterFlowMapper.selectWaterFlowById(id);
    }

    /**
     * 查询水流与水位监测列表
     * 
     * @param waterFlow 水流与水位监测
     * @return 水流与水位监测
     */
    @Override
    public List<WaterFlow> selectWaterFlowList(WaterFlow waterFlow)
    {
        return waterFlowMapper.selectWaterFlowList(waterFlow);
    }

    /**
     * 新增水流与水位监测
     * 
     * @param waterFlow 水流与水位监测
     * @return 结果
     */
    @Override
    public int insertWaterFlow(WaterFlow waterFlow)
    {
        return waterFlowMapper.insertWaterFlow(waterFlow);
    }

    /**
     * 修改水流与水位监测
     * 
     * @param waterFlow 水流与水位监测
     * @return 结果
     */
    @Override
    public int updateWaterFlow(WaterFlow waterFlow)
    {
        return waterFlowMapper.updateWaterFlow(waterFlow);
    }

    /**
     * 批量删除水流与水位监测
     * 
     * @param ids 需要删除的水流与水位监测主键
     * @return 结果
     */
    @Override
    public int deleteWaterFlowByIds(Long[] ids)
    {
        return waterFlowMapper.deleteWaterFlowByIds(ids);
    }

    /**
     * 删除水流与水位监测信息
     * 
     * @param id 水流与水位监测主键
     * @return 结果
     */
    @Override
    public int deleteWaterFlowById(Long id)
    {
        return waterFlowMapper.deleteWaterFlowById(id);
    }
}
